﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="登录.aspx.cs" Inherits="小区物业管理系统.登录" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            margin-right: 0px;
        }
        *
        {
            font-family: 微软雅黑;
        }
        .style1
        {
            width: 255px;
        }
        .auto-style3 {
            margin-left: 0px;
        }
        .auto-style4 {
            height: 35px;
        }
        .auto-style5 {
            height: 41px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table border="0" style="width: 950px; height: 120px" align="center">
    <tr>
        <td>
            <asp:Image ID="Image1" runat="server" CssClass="auto-style1" Height="190px" ImageUrl="~/Images/3.gif" Width="1016px" />
&nbsp;</td>
    </tr>
</table>
        </div>
        <table align="center">
            <thead>
                
                <tr>
                    <td colspan="2" text-align="center" class="auto-style5">
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" text-align="center" >
                        <asp:ListItem>用户</asp:ListItem>
                        <asp:ListItem>管理员</asp:ListItem>
                    </asp:RadioButtonList>
                    </td>
                </tr>
            </thead>
            <tr>
                <td colspan="2">&nbsp; 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="RadioButtonList1" ErrorMessage="请选择身份登录" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="用户名:"></asp:Label>
                </td>
                <td class="style1">
                    <asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="160px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp; 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox1" ErrorMessage="用户名不存在" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="密码:"></asp:Label>
                </td>
                <td class="style1">
                    <asp:TextBox ID="TextBox2" runat="server" Height="20px" TextMode="Password" Width="160px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="auto-style4" colspan="2">&nbsp; 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox2" ErrorMessage="密码不存在" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="Button1" runat="server" BackColor="green" BorderColor="White" Font-Bold="true" ForeColor="White" Height="42px" OnClick="btnLogin_Click" Text="登录" Width="98px" />
                    &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button2" runat="server" BackColor="green" BorderColor="White" CssClass="auto-style3" Font-Bold="true" ForeColor="White" Height="36px" OnClick="btnRegister_Click" Text="注册" Width="88px" />
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;
                    <asp:Label ID="Label3" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
